import Vue from 'vue'
import store from '../store'
import Router from 'vue-router'
import { constantRouterMap, asyncRouterMap } from './routes'

Vue.use(Router)

const router = new Router({
  // mode: 'history', //后端支持可开
  // scrollBehavior: () => ({ y: 0 }),
  routes: constantRouterMap,
})

export default router;

export {
  constantRouterMap,
  asyncRouterMap
}